<div class="sidebar">
	<ul>
		<?php 
			echo "<li>".$this->Html->link('Applications',array('controller'=>'applications','action'=>'index'))."</li>";
				
			echo "<li>".$this->Html->link('--'.$sonapp['Application']['name'],array('controller'=>'versions','action'=>'VersionsOfApplication',$sonapp['Application']['id']))."</li>";

			echo "<li>".$this->Html->link('----'.$saversion['Version']['name'],array('controller'=>'tables','action'=>'TablesOfVersion',$saversion['Version']['id']))."</li>";

			echo "<li>".$this->Html->link('----'.$satable['Table']['name'],array('controller'=>'colonnes','action'=>'ColonnesOfTable',$satable['Table']['id']))."</li>";
		?>
	</ul>
</div>

<div class="colonnes view">
<h2><?php  echo __('Colonne');?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($colonne['Colonne']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Name'); ?></dt>
		<dd>
			<?php echo h($colonne['Colonne']['name']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Type'); ?></dt>
		<dd>
			<?php echo h($colonne['Pgtypecol']['name']); ?>&nbsp; <?php if ($colonne['Colonne']['longueur']) {	echo "(".h($colonne['Colonne']['longueur']).")"; } ?>
			&nbsp;
		</dd>
		<dt><?php echo __('TopPk'); ?></dt>
		<dd>
			<?php echo h($colonne['Colonne']['topPk']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Description'); ?></dt>
		<dd>
			<?php echo $colonne['Colonne']['description']; ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Table'); ?></dt>
		<dd>
			<?php echo $this->Html->link($colonne['Table']['name'], array('controller' => 'tables', 'action' => 'view', $colonne['Table']['id'])); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Colonne'), array('action' => 'edit', $colonne['Colonne']['id'])); ?> </li>
		<li>-------------------------</li>
		<li><?php echo $this->Form->postLink(__('Delete Colonne'), array('action' => 'delete', $colonne['Colonne']['id'],$satable['Table']['id']), null, __('Are you sure you want to delete # %s - %s?', $colonne['Colonne']['id'],$colonne['Colonne']['name'])); ?> </li>
		<!--li><?php //echo $this->Html->link(__('List Colonnes'), array('action' => 'index')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('New Colonne'), array('action' => 'add')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('List Tables'), array('controller' => 'tables', 'action' => 'index')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('New Table'), array('controller' => 'tables', 'action' => 'add')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('List Clerupts'), array('controller' => 'clerupts', 'action' => 'index')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('New Clerupt'), array('controller' => 'clerupts', 'action' => 'add')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('List Descriptifs'), array('controller' => 'descriptifs', 'action' => 'index')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('New Descriptif'), array('controller' => 'descriptifs', 'action' => 'add')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('List Donnees'), array('controller' => 'donnees', 'action' => 'index')); ?> </li-->
		<!--li><?php //echo $this->Html->link(__('New Donnee'), array('controller' => 'donnees', 'action' => 'add')); ?> </li-->
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Clerupts');?></h3>
	<?php if (!empty($colonne['Clerupt'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Colonne Id'); ?></th>
		<th><?php echo __('Rupture Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($colonne['Clerupt'] as $clerupt): ?>
		<tr>
			<td><?php echo $clerupt['id'];?></td>
			<td><?php echo $clerupt['title'];?></td>
			<td><?php echo $clerupt['colonne_id'];?></td>
			<td><?php echo $clerupt['rupture_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'clerupts', 'action' => 'view', $clerupt['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'clerupts', 'action' => 'edit', $clerupt['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'clerupts', 'action' => 'delete', $clerupt['id']), null, __('Are you sure you want to delete # %s?', $clerupt['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Clerupt'), array('controller' => 'clerupts', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Descriptifs');?></h3>
	<?php if (!empty($colonne['Descriptif'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Colonne Id'); ?></th>
		<th><?php echo __('Rupture Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($colonne['Descriptif'] as $descriptif): ?>
		<tr>
			<td><?php echo $descriptif['id'];?></td>
			<td><?php echo $descriptif['title'];?></td>
			<td><?php echo $descriptif['colonne_id'];?></td>
			<td><?php echo $descriptif['rupture_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'descriptifs', 'action' => 'view', $descriptif['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'descriptifs', 'action' => 'edit', $descriptif['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'descriptifs', 'action' => 'delete', $descriptif['id']), null, __('Are you sure you want to delete # %s?', $descriptif['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Descriptif'), array('controller' => 'descriptifs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php echo __('Related Donnees');?></h3>
	<?php if (!empty($colonne['Donnee'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Title'); ?></th>
		<th><?php echo __('Motifchangement'); ?></th>
		<th><?php echo __('Colonne Id'); ?></th>
		<th><?php echo __('Ligne Id'); ?></th>
		<th class="actions"><?php echo __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($colonne['Donnee'] as $donnee): ?>
		<tr>
			<td><?php echo $donnee['id'];?></td>
			<td><?php echo $donnee['title'];?></td>
			<td><?php echo $donnee['motifchangement'];?></td>
			<td><?php echo $donnee['colonne_id'];?></td>
			<td><?php echo $donnee['ligne_id'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'donnees', 'action' => 'view', $donnee['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'donnees', 'action' => 'edit', $donnee['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'donnees', 'action' => 'delete', $donnee['id']), null, __('Are you sure you want to delete # %s?', $donnee['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Donnee'), array('controller' => 'donnees', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
